import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';

class MyLoadingUtil {
  static showLoading({String? msg}) {
    if (EasyLoading.isShow) {
      EasyLoading.dismiss(animation: false);
    }
    EasyLoading.show(status: msg ?? "loading".tr);
  }

  static hideLoading() {
    // BotToast.closeAllLoading();

    if (EasyLoading.isShow) {
      EasyLoading.dismiss(animation: false);
    }
  }
}
